package com.freewayso.image.combiner.element;

import java.awt.*;

/**
 * @author lobyliang
 */
public class FrameElement extends CombineElement<FrameElement> {
    /**
     * 画笔宽度
     */
    private float strokeWidth;
    private Color color = new Color(0, 0, 0);   //颜色，默认黑色
    public Color getColor() {
        return color;
    }
    private int width;
    private int height;

    public Integer getRoundCorner(){
        return roundCorner;
    }

    public void setRoundCorner(Integer roundCorner){
        this.roundCorner = roundCorner;
    }

    private Integer roundCorner;

    public float getStrokeWidth(){
        return strokeWidth;
    }

    public void setStrokeWidth(float strokeWidth){
        this.strokeWidth = strokeWidth;
    }

    public int getWidth(){
        return width;
    }

    public void setWidth(int width){
        this.width = width;
    }

    public int getHeight(){
        return height;
    }

    public void setHeight(int height){
        this.height = height;
    }

    public FrameElement setColor(Color color) {
        this.color = color;
        return this;
    }

    public FrameElement setColor(int r, int g, int b) {
        return setColor(new Color(r, g, b));
    }

}
